home *** CD-ROM | disk | FTP | other *** search
- 100 REM * SPELL.BAS * FOR USE WITH DRILL.BAS PGM * SPELLING DRILL
- 110 DIM WO$(20)
- 120 CLS
- 130 PRINT
- 140 PRINT TAB(10)"----- Spelling Drill -----"
- 150 PRINT
- 160 INPUT"What is the number of the spelling lesson.";A$
- 170 INPUT"What is the grade level (4,5,6,7,8)";GL$
- 180 IF VAL(GL$)<4 OR VAL(GL$)>8 THEN 170
- 190 U$="UNIT"+GL$+A$
- 200 OPEN"I",1,U$
- 210 FOR X=1 TO 20
- 220 INPUT #1,WO$(X)
- 230 NEXT X
- 240 CLOSE
- 250 CLS
- 260 PRINT"When you see a word spelled letter by letter at the"
- 270 PRINT"center top of the screen, you enter the correct spelling"
- 280 PRINT"for that word.
- 290 PRINT"If you get the word on the first try you get 5 points."
- 300 PRINT"If you get the word on the second try you get 3 points."
- 310 PRINT"If you get the word on the third try you get only 1 point."
- 320 PRINT
- 330 INPUT"Press ENTER when you are ready to start.";A
- 340 CLS
- 350 PRINT"These are the words you will by asked to spell."
- 360 PRINT
- 370 FOR X=1 TO 20 STEP 2
- 380 PRINT X;TAB(5);WO$(X);TAB(30);X+1;TAB(35);WO$(X+1)
- 390 NEXT X
- 400 PRINT
- 410 INPUT"Press ENTER when you are ready to continue.";A
- 420 CLS
- 430 FOR X=1 TO 20
- 440 FOR Y=3 TO 1 STEP -1
- 450 L=LEN(WO$(X))
- 460 FOR Q=1 TO 400:NEXT Q: ' one of many delay loops
- 470 FOR Z=1 TO L
- 480 LOCATE 3,Z+30:PRINT MID$(WO$(X),Z,2)
- 490 FOR Q=1 TO 200:NEXT Q: ' sets speed of the letter's appearance
- 500 LOCATE 3,Z+30:PRINT" ": ' one space between quotes here
- 510 NEXT Z
- 520 CLS
- 530 LOCATE 10,5:INPUT"Type the word that appeared on the screen.";AN$
- 540 IF WO$(X)<>AN$ THEN 600
- 550 SC=SC+2*Y-1:PRINT"Score..... =";SC
- 560 PRINT"Good work, you spelled <";WO$(X);"> correctly."
- 570 PRINT"Watch the top center of the screen for the next word."
- 580 FOR Q= 1 TO 1000:NEXT Q
- 590 GOTO 680
- 600 IF Y=3 THEN PRINT"You missed the word on the 1st try."
- 610 IF Y=2 THEN PRINT"You missed the word on the 2nd try."
- 620 IF Y=1 THEN PRINT"The correct spelling is: ";WO$(X)
- 630 FOR Q=1 TO 1000:NEXT Q
- 640 IF Y=3 OR Y=2 THEN PRINT"Watch the top center of the screen."
- 650 IF Y=1 THEN PRINT"Your three tries are gone. Watch for the next word."
- 660 FOR Q=1 TO 2000:NEXT Q
- 670 NEXT Y
- 680 NEXT X
- 690 PRINT"Your score on the last 20 words is ";SC:CT=CT+1
- 700 TS=TS+SC:SC=0
- 710 PRINT"Your total score is ";:PRINT USING "###.#";TS/CT
- 720 PRINT"Do you wish to try another lesson (Y/N)"
- 730 A$=INKEY$:IF A$="" THEN 730
- 740 IF A$="Y" OR A$="y" THEN GOTO 140
- 750 IF A$="N" OR A$="n" THEN RUN"DRILL.BAS" ELSE 720